package com.driving.exam.entity;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 模拟考试试题
 *
 * @author SAGITTAR
 */
@Alias(value = "ExerciseExam")
@TableName(value = "tb_exercise_exam")
public class ExerciseExam extends Model<ExerciseExam> {

    private static final long serialVersionUID = 6178426126739958818L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "subject_id")
    private Integer subjectId;

    @TableField(value = "type")
    private String type;

    @TableField(value = "exercise_ids")
    private String exerciseIds;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExerciseIds() {
        return exerciseIds;
    }

    public void setExerciseIds(String exerciseIds) {
        this.exerciseIds = exerciseIds;
    }
}
